﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DoAn_BumTruong_DesignPattern.Controls
{
    public partial class Comment : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }
        Facades fccomment = new Facades();
        public void LoadData()
        {
            string articleID = Request.QueryString["ArticleID"] ?? "";
            RepeaterComment.DataSource = fccomment.GetCommentByArticleID(articleID);
            RepeaterComment.DataBind();
        }

    }
}